package com.dao;

import com.entity.User;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface UserDao {
    /**
     * 通过账号和密码查询用户以及添加用户
     */
    public User findUser(@Param("userid") String userid,
                         @Param("password") String password);

    public User findUserid(@Param("userid") String userid);

    public User findUsername(@Param("username") String username);

    public void addUser(@Param("tel") String tel,
                        @Param("username") String username,
                        @Param("password") String password,
                        @Param("maxID") String maxID);
    public String checktel(@Param("tel") String tel);
    public String maxID();
	public List<User> selectUserList(User user);
	public Integer selectUserListCount(User user);

	public User findUserById(Integer id);

	public int updateUser(User user);

	public int deleteUser(Integer id);

	public int createUser(User user);
}
